package org.jeecg;

import java.util.Date;

import java.io.Serializable;

import com.voucher.manage.daoSQL.annotations.*;

@DBTable(name="sys_permission")
public class Sys_permission implements Serializable{

    private static final long serialVersionUID = 1L;

    @SQLString(name="id")
	private String id;

    @SQLString(name="parent_id")
	private String parent_id;

    @SQLString(name="name")
	private String name;

    @SQLString(name="url")
	private String url;

    @SQLString(name="component")
	private String component;

    @SQLString(name="component_name")
	private String component_name;

    @SQLString(name="redirect")
	private String redirect;

    @SQLInteger(name="menu_type")
	private Integer menu_type;

    @SQLString(name="perms")
	private String perms;

    @SQLString(name="perms_type")
	private String perms_type;

    @SQLDouble(name="sort_no")
	private Double sort_no;

    @SQLByte(name="always_show")
	private Byte always_show;

    @SQLString(name="icon")
	private String icon;

    @SQLByte(name="is_route")
	private Byte is_route;

    @SQLByte(name="is_leaf")
	private Byte is_leaf;

    @SQLByte(name="keep_alive")
	private Byte keep_alive;

    @SQLInteger(name="hidden")
	private Integer hidden;

    @SQLString(name="description")
	private String description;

    @SQLString(name="create_by")
	private String create_by;

    @SQLDateTime(name="create_time")
	private Date create_time;

    @SQLString(name="update_by")
	private String update_by;

    @SQLDateTime(name="update_time")
	private Date update_time;

    @SQLInteger(name="del_flag")
	private Integer del_flag;

    @SQLShort(name="rule_flag")
	private Integer rule_flag;

    @SQLString(name="status")
	private String status;

    @SQLByte(name="internal_or_external")
	private Byte internal_or_external;

	public void setId(String id){
		this.id = id;
	}

	public String getId(){
		return id;
	}

	public void setParent_id(String parent_id){
		this.parent_id = parent_id;
	}

	public String getParent_id(){
		return parent_id;
	}

	public void setName(String name){
		this.name = name;
	}

	public String getName(){
		return name;
	}

	public void setUrl(String url){
		this.url = url;
	}

	public String getUrl(){
		return url;
	}

	public void setComponent(String component){
		this.component = component;
	}

	public String getComponent(){
		return component;
	}

	public void setComponent_name(String component_name){
		this.component_name = component_name;
	}

	public String getComponent_name(){
		return component_name;
	}

	public void setRedirect(String redirect){
		this.redirect = redirect;
	}

	public String getRedirect(){
		return redirect;
	}

	public void setMenu_type(Integer menu_type){
		this.menu_type = menu_type;
	}

	public Integer getMenu_type(){
		return menu_type;
	}

	public void setPerms(String perms){
		this.perms = perms;
	}

	public String getPerms(){
		return perms;
	}

	public void setPerms_type(String perms_type){
		this.perms_type = perms_type;
	}

	public String getPerms_type(){
		return perms_type;
	}

	public void setSort_no(Double sort_no){
		this.sort_no = sort_no;
	}

	public Double getSort_no(){
		return sort_no;
	}

	public void setAlways_show(Byte always_show){
		this.always_show = always_show;
	}

	public Byte getAlways_show(){
		return always_show;
	}

	public void setIcon(String icon){
		this.icon = icon;
	}

	public String getIcon(){
		return icon;
	}

	public void setIs_route(Byte is_route){
		this.is_route = is_route;
	}

	public Byte getIs_route(){
		return is_route;
	}

	public void setIs_leaf(Byte is_leaf){
		this.is_leaf = is_leaf;
	}

	public Byte getIs_leaf(){
		return is_leaf;
	}

	public void setKeep_alive(Byte keep_alive){
		this.keep_alive = keep_alive;
	}

	public Byte getKeep_alive(){
		return keep_alive;
	}

	public void setHidden(Integer hidden){
		this.hidden = hidden;
	}

	public Integer getHidden(){
		return hidden;
	}

	public void setDescription(String description){
		this.description = description;
	}

	public String getDescription(){
		return description;
	}

	public void setCreate_by(String create_by){
		this.create_by = create_by;
	}

	public String getCreate_by(){
		return create_by;
	}

	public void setCreate_time(Date create_time){
		this.create_time = create_time;
	}

	public Date getCreate_time(){
		return create_time;
	}

	public void setUpdate_by(String update_by){
		this.update_by = update_by;
	}

	public String getUpdate_by(){
		return update_by;
	}

	public void setUpdate_time(Date update_time){
		this.update_time = update_time;
	}

	public Date getUpdate_time(){
		return update_time;
	}

	public void setDel_flag(Integer del_flag){
		this.del_flag = del_flag;
	}

	public Integer getDel_flag(){
		return del_flag;
	}

	public void setRule_flag(Integer rule_flag){
		this.rule_flag = rule_flag;
	}

	public Integer getRule_flag(){
		return rule_flag;
	}

	public void setStatus(String status){
		this.status = status;
	}

	public String getStatus(){
		return status;
	}

	public void setInternal_or_external(Byte internal_or_external){
		this.internal_or_external = internal_or_external;
	}

	public Byte getInternal_or_external(){
		return internal_or_external;
	}




/*
*数据库查询参数
*/
    @QualifiLimit(name="limit")
    private Integer limit;
    @QualifiOffset(name="offset")
    private Integer offset;
    @QualifiNotIn(name="notIn")
    private String notIn;
    @QualifiSort(name="sort")
    private String sort;
    @QualifiOrder(name="order")
    private String order;
    @QualifiWhere(name="where")
    private String[] where;
    @QualifiWhereTerm(name="whereTerm")
    private String whereTerm;


	public void setLimit(Integer limit){
		this.limit = limit;
	}

	public Integer getLimit(){
		return limit;
	}

	public void setOffset(Integer offset){
		this.offset = offset;
	}

	public Integer getOffset(){
		return offset;
	}

	public void setNotIn(String notIn){
		this.notIn = notIn;
	}

	public String getNotIn(){
		return notIn;
	}

	public void setSort(String sort){
		this.sort = sort;
	}

	public String getSort(){
		return sort;
	}

	public void setOrder(String order){
		this.order = order;
	}

	public String getOrder(){
		return order;
	}

	public void setWhere(String[] where){
		this.where = where;
	}

	public String[] getWhere(){
		return where;
	}

	public void setWhereTerm(String whereTerm){
		this.whereTerm = whereTerm;
	}

	public String getWhereTerm(){
		return whereTerm;
	}

}

